{{ $lang := site.LanguageCode }}
{{ $home := .IsHome }}
<!DOCTYPE html>
<html{{ with $lang }} lang="{{ . }}"{{ end }}>
  <head>
    {{ partial "meta.html" . }}
    <title>
      {{ block "title" . }}
      {{ site.Title }}
      {{ end }}
    </title>
    {{ partial "css.html" . }}
    {{ partial "favicon.html" . }}

    {{ if $home }}
    <script async defer src="https://buttons.github.io/buttons.js"></script>
    {{ end }}
  </head>
  <body class="is-page has-navbar-fixed-top">
    <main class="is-main">
      {{ partial "navbar.html" . }}

      {{ block "main" . }}
      {{ end }}
    </main>

    {{ partial "footer.html" . }}
    {{ partial "javascript.html" }}
  </body>
</html>
